package com.project.service.impl;

import com.project.service.IManService;
import com.project.service.IMoveService;
import org.springframework.core.env.SystemEnvironmentPropertySource;

import java.util.Arrays;
import java.util.List;

public class ChineseManService implements IManService {
    private  String name;
    private IMoveService service;
    private int[] array;
    private List list;

    public void setName(String name) {
        this.name = name;
    }

    public void setService(IMoveService service) {
        this.service = service;
    }

    public void setArray(int[] array) {
        this.array = array;
    }

    public void setList(List list) {
        this.list = list;
    }

    public void init(){
        System.out.println("初始化组件");
    }

    public void run() {
        System.out.println("奔跑吧，"+this.name);
        this.service.move();
        System.out.println(Arrays.toString(this.array));
        System.out.println(list);
    }

    public void destroy(){
        System.out.println("销毁组件");
    }
}
